/*
 * MemoryRGB24Image
 *
 * Copyright (c) 2002, 2003 Marco Schmidt.
 * All rights reserved.
 */
namespace Petra.Gis.Geometry.Image.Tiff
{
  /**
   * A class to store 24 bit RGB truecolor images in memory.
   * @author Marco Schmidt
   * @see RGB24Image
   */
  public class MemoryRGB24Image : MemoryByteChannelImage, IRGB24Image
  {
    /**
     * Creates a new object of this class, with width and height as
     * specified by the arguments.
     * @param width the horizontal resolution of the new image in pixels
     * @param height the vertical resolution of the new image in pixels
     */
    public MemoryRGB24Image(ImageFileDirectory ifd, int width, int height)
      : base(ifd, 3, width, height)
    { }



    public override IPixelImage createCompatibleImage(int width, int height)
    {
      return new MemoryRGB24Image(_ifd, width, height);
    }
  }
}